from DataManagement.models import CodeModel
from django.db import models


class Xzqydm(CodeModel):
    value = models.CharField(primary_key=True, max_length=6)
    label = models.CharField(max_length=32, blank=True, null=True)
    code = models.CharField(max_length=2, blank=True, null=True)
    province = models.CharField(max_length=32, blank=True, null=True)
    area = models.CharField(max_length=32, blank=True, null=True)
    bz = models.CharField(max_length=255, blank=True, null=True, verbose_name='备注')

    class Meta:
        managed = False
        db_table = 'xzqydm'
        verbose_name = '行政区划代码表'
        verbose_name_plural = '行政区划代码表'
